export default {
    state : {
        moduleInfo: 0,
    },
    getters: {
        moduleInfoPlus: (state) => {
            return state.moduleInfo + '+'
        }
    },
    namespaced: true,
    mutations: {
        changeModuleInfo(state,payload){
            state.moduleInfo = payload || 0
        },
    },
    actions: {
        changeModuleInfoAsync(context, payload) {
            console.log(context)
            context.state.moduleInfo = payload
            context.commit('changeModuleInfo', payload + 1)
        }
    }

}